package com.bookmanager.www.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 图书的类别
 * </p>
 *
 * @author 风离
 * @since 2021-09-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class FlCategories implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 图书类别id
     */
    @TableId(value = "categories_id", type = IdType.AUTO)
    private Integer categoriesId;

    private String classname;


    /**
     * 分类图片
     */
    private String topImage;

    /**
     * 类别创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 类别修改时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;


}
